package com.hll.spring_book;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: Mr.Hu
 * @create: 2021-03-17 21:54
 */
@MapperScan("com.hll.spring_book.mapper") // 不配置可能报错
@SpringBootApplication
@EnableTransactionManagement // 开启事务管理器，在service实现类方法上加一个注解
public class Application {
  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}
